<!doctype html>
<html>
	<head>
		<title>File upload test</title>
		<script src="fileupload.js"></script>
		<script>
		var upl;
		function init ()
		{
			upl = new fileupload ( document.getElementById ( 'status' ), '/', { test: 1 } );
		}
		function upload ()
		{
			upl.from_input ( document.getElementById ( 'file-upload' ) );
			upl.upload ();
			upl.reset ();
		}
		</script>
	</head>

	<body onload="init()">
		<div id="container">
			<input type="file" multiple id="file-upload" />
			<button onclick="check()">Check</button>
			<button onclick="upload()">Upload</button>
			<div id="status"></div>
		</div>
	</body>
</html>
